package com.kevin.learn.d.代理对象.b.动态代理;

public class Client {

    public static void main(String[] args) {
        
        ITeacherDao teacherDao = new TeacherDao();
        
        ProxyFactory proxyFactory = new ProxyFactory(teacherDao);
        ITeacherDao proxyInstance = (ITeacherDao) proxyFactory.getProxyInstance();
        proxyInstance.teach();
    }
}
